﻿@{
    Layout = null;
}
@model ElingOA6_Admin_DSJCJ.Model.PerformancePrjEntry
<!DOCTYPE html>

<html>
<head>
  <base target=_self />
    <title>PerformancePrjEntryEdit</title>
          @if (false)
    {
        <script src="../../../../Scripts/jquery-vsdoc.js" type="text/javascript"></script>
        <script src="../../../../Scripts/ASPxScriptIntelliSense.js" type="text/javascript"></script>
    }
    <link href="@Url.Content("~/Content/Site.css", true)" rel="stylesheet" type="text/css" />

    <script src="@Url.Content("~/Scripts/jquery.min.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/FloatDiv.js", true)" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/regex.js", true)" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/PageCommon.js", true)" type="text/javascript"></script>
    <script src="@Url.Content("~/Common/GetRootPath.ashx", true)" type="text/javascript"></script>

    @Html.DevExpress().GetStyleSheets(

        new StyleSheet { ExtensionType = ExtensionType.ListBox, Theme = DevExpressHelper.Theme },
                new StyleSheet { ExtensionType = ExtensionType.GridView, Theme = DevExpressHelper.Theme }
)
    @Html.DevExpress().GetScripts(
        new Script { ExtensionType = ExtensionType.ListBox }
)

    <script>

        $(document).ready(function () {
            $("#toolMenu").smartFloat();
            var hdjsAlert = $("#hdjsAlert").val();
            if (hdjsAlert == "ok") {
                alert("操作成功");
                window.returnValue = 'SUCCESS';
                window.close();
            }
            else if (hdjsAlert == "error") {
                alert("操作失败");
            }
            else {
                if (hdjsAlert != "") {
                    alert(hdjsAlert);
                }
            }
        });

        function OK() {
            form1.submit();
        }

        function MenuTop_emClick(source, e) {
            switch (e.item.name) {
                case "btnSave":
                    {
                        //保存
                        OK();
                        break;
                    }
                case "btnCancel":
                    {
                        window.close();
                        break;
                    }
            }
        }
</script>
</head>
<body>

    @using (Html.BeginForm("PerformancePrjEntrySave", "Performance", FormMethod.Post, new { id = "form1", @class = "tableFrom", enctype = "multipart/form-data" }))
    {
         <div class="floatToolMenu" id="toolMenu">
        @Html.DevExpress().Menu(settings =>
   {
       settings.Name = "toolBarMenu";
       settings.ItemAutoWidth = false;
       settings.Width = System.Web.UI.WebControls.Unit.Percentage(100);
       settings.Styles.Style.Border.BorderWidth = System.Web.UI.WebControls.Unit.Pixel(0);
       settings.Styles.Style.BorderTop.BorderWidth = System.Web.UI.WebControls.Unit.Pixel(1);
       settings.Items.Add(item =>
       {
           item.Name = "btnSave";
           item.Text = "确定";
           item.ClientEnabled = true;
           item.Image.Url = Url.Content("~/Content/ControlImages/filesave.png");

       });
       settings.Items.Add(item =>
       {
           item.Name = "btnCancel";
           item.Text = "取消";
           item.ClientEnabled = true;
           item.Image.Url = Url.Content("~/Content/ControlImages/no.png");

       });
       settings.ClientSideEvents.ItemClick = "function(source,e){MenuTop_emClick(source,e)}";
       settings.ItemLinkMode = ItemLinkMode.ContentBounds;
   }).GetHtml()
   </div>
    <div>
        <table class="tableForm" style=" font-size:12px">
        <tr>
        <th>
        类别:
        </th>
        <td class="tdClass">
        @Html.DevExpress().ComboBox(settings =>
   {

       settings.Name = "FPerformanceFileClsCd";
       settings.Properties.DropDownStyle = DropDownStyle.DropDownList;
       settings.Properties.TextField = "FPerformanceFileClsName";
       settings.Properties.ValueField = "FPerformanceFileClsCd";
   }).BindList(ViewData["PerformanceFileClsList"]).Bind(Model.FPerformanceFileClsCd).GetHtml()
        </td>
        <td class="tdClass">
        @Html.DevExpress().CheckBox(settings =>
   {
       settings.Name = "FIsPublic";
       settings.Text = "公开文件";
       if (Model.FIsPublic == "Y")
       {
           settings.Checked = true;
       }
       else
       {
           settings.Checked = false;
       }
   }).GetHtml()
        </td>
        </tr>
        <tr>
        <th>上传文件:</th>
        <td colspan="2"  class="tdClass">
             <input type="file" name="fj" />
        </td>
        </tr>
        </table>
    </div>
           @Html.Hidden("hdjsAlert", ViewData["jsAlert"])
           @Html.Hidden("hidFPerformancePrjID", Model.FPerformancePrjID)
    }
</body>
</html>
